ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods







OBJECT:  Class


Class

VBScript 5.0

The term, Class, refers to any object that you create using the Class ... End Class statement. This ability to create your own object and to perform operations upon it using any valid VBScript code, represents a significant expansion of the versatility of the VBScript language.

Note that Class is a keyword and you may not use it as a class name.

After you have used the Class statement to declare a class name, then, as demonstrated below, you may declare an instance of that Class (i.e., object) using Set and New.

Code:
<%
Dim YourObjectVariable
Set YourObjectVariable = New YourClassName
%>